<?php
$id=$_GET['id'];
header('Content-Type:text/html;charset=utf-8');
require_once($_SERVER['DOCUMENT_ROOT'].'/public/func.php');
$config=require_once($_SERVER['DOCUMENT_ROOT'].'/public/config.php');
$arr=select($config,'comment',"where id={$id}")['0'];
?>
<?php
require($_SERVER['DOCUMENT_ROOT']."/admin/public/header.php");
?>
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="index.php">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="design.php">评论管理</a><span class="crumb-step">&gt;</span><span>修改评论</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="/admin/comment/xiugai.php" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody><!--<tr>
                            <th width="120"><i class="require-red">*</i>分类：</th>
                            <td>
                                <select name="colId" id="catid" class="required">
                                    <option value="">请选择</option>
                                    <option value="19">精品界面</option><option value="20">推荐界面</option>
                                </select>
                            </td>
                        </tr>-->
                            <tr>
                             <input type="hidden" name="id" value="<?php
                              echo $arr['id'];
                              ?>"> 
                                <th><i class="require-red">*</i>关联文章id：</th>
                                <td>
                                    <input class="common-text required" id="title" name="aid" size="50" value="<?php
                                    echo $arr['aid'];
                                    ?>" type="text">
                                </td>
                            </tr>
                            <tr>
                            <th><i class="require-red">*</i>关联分类id：</th>
                                <td>
                                    <input class="common-text required" id="title" name="cid" size="50" value="<?php
                                    echo $arr['cid'];
                                    ?>" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th>用户名：</th>
                                <td><input class="common-text" name="uname" size="50" value="<?php
                                echo $arr['uname'];
                                ?>" type="text"></td>
                            </tr>
                             <!--<tr>
                               <th><i class="require-red">*</i>缩略图：</th>
                                <td><input name="smallimg" id="" type="file"><input type="submit" onclick="submitForm('/jscss/admin/design/upload')" value="上传图片"/></td>
                            </tr>-->
                            <tr>
                                <th>评论内容：</th>
                                <td><textarea name="comment" class="common-textarea" id="content" cols="30" style="width: 98%;" rows="10"><?php
                                echo  $arr['comment'];
                                ?></textarea></td>
                            </tr>
                            <tr>
                            <tr>
                               <th>状态</th>
                               <td><input type="radio" name="status" value="0" <?php
                               echo $arr['status']?'checked':''?>>不显示&nbsp;
                                   <input type="radio" name="status" value="1" value<?php
                               echo $arr['status']?'checked':''?>>显示</td>
                            </tr>
                            <tr>
                               <th>评论时间</th>
                               <td><input type="text" name="ctime" value="<?php
                               date_default_timezone_set("PRC");
                               echo time();?>"></td>
                            </tr>
                            <tr>
                                <th>上传文件: </th>
                                <td><input name="mfile"  value="<?php
                                echo $arr['mfile'];
                                ?>" type="file"></td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
<?php
require($_SERVER['DOCUMENT_ROOT']."/admin/public/tali.php");
?>